package com.qcby.Mapper;

import com.qcby.Entity.TrainOrder;
import com.qcby.query.TrainOrderQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TrainOrderMapper {
    List<TrainOrder> getTrainOrderByTrainId(int id);
    List<TrainOrderQuery> findTrainOrderByTrainId(int id);
    List<TrainOrder> getTrainOrderByTrainIdAndCarriageNum(int carriageNum,int trainNumId);
    List<TrainOrder> getSameSeatOrder(int trainNumId,int carriageNum,int seatNum);
    void insertOrder(TrainOrder trainOrder);
}
